<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
    <style>
        form {
            width: 300px;
            margin: 0 auto;
        }
        input[type=text], input[type=password], input[type=date] {
            width: 100%;
            padding: 8px;
            margin: 5px 0;
            display: inline-block;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        input[type=submit] {
            width: 100%;
            background-color: #4CAF50;
            color: white;
            padding: 10px;
            margin: 8px 0;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        input[type=submit]:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<h1>添加用户</h1>

<!-- 修正 action 地址拼写错误，把 manageuserServle 改成 manageuserServlet -->
<form action="manageuserServlet?action=add" method="post">
    <!-- 以下字段名修改为和 Servlet 中 addUser 方法接收的参数一致 -->
    <label>userNo:</label>
    <input type="text" name="userNo" required><br>

    <label>userPwd:</label>
    <input type="password" name="userPwd" required><br>

    <label>userName:</label>
    <input type="text" name="userName" required><br>

    <label>birthday:</label>
    <input type="date" name="birthday"><br>

    <input type="submit" value="添加">
</form>

<a href="manageuserServlet?action=list">返回用户列表</a>
</body>
</html>